<template>
    <div class="app-container">
        <div style="margin: 0 auto">
            <el-row :gutter="10">
                <el-col span="12" :offset="6">
                    <div style="text-align: center;margin-bottom: 30px">
                        操作记录详情信息
                    </div>
                    <el-form :model="positioningInfo" ref="positioningInfo">
                        <el-form-item label="操作人:" prop="userName">
                            {{ positioningInfo.userName }}
                        </el-form-item>
                        <el-form-item label="详细地址:" prop="userType">
                            {{positioningInfo.userType==0?"管理员":"用户"}}
                        </el-form-item>
                        <el-form-item label="动作:" prop="action">
                            {{ positioningInfo.action }}
                        </el-form-item>
                        <el-form-item label="操作对象:" prop="obj">
                            {{ positioningInfo.obj }}
                        </el-form-item>
                        <el-form-item label="记录时间:" prop="logTime">
                            {{ positioningInfo.logTime }}
                        </el-form-item>
                        <el-form-item label="记录内容:" prop="content">
                            {{ positioningInfo.content }}
                        </el-form-item>
                    </el-form>
                </el-col>
            </el-row>
        </div>
    </div>
</template>

<script>
import {getInLogVo} from "@/api/log";

export default {
    name: "info",
    data(){
        return{
            positioningInfo:{}
        }
    },
    created() {
        this.getInLogVo()
    },
    methods:{
        getInLogVo(){
            getInLogVo({ucId:this.$route.query.ucId}).then(res=>{
                this.positioningInfo = res.data
                this.$notify.success({
                    title: '成功',
                    message: "获取错做记录成功"
                })
            }).catch(error=>{
                this.$notify.error({
                    title: '失败',
                    message: error.message
                })
            })
        }
    },
}
</script>

<style
        scoped>

</style>